import request from '@/utils/request'

export function getPageList(page,limit,keyword){
    return request({
        url: `/admin/core/borrower/list/${page}/${limit}`,
        method: 'get',
        params: {keyword}
    })
}

export function show(id){
    return request({
        url: `/admin/core/borrower/show/${id}`,
        method: 'get'
    })
}

export function approval(borrowerApproval){
    return request({
        url: '/admin/core/borrower/approval',
        method: 'post',
        data: borrowerApproval
    })
}